package com.book.mapper;

import com.book.pojo.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxy
 * @since 2023-10-12 17:15:29
 */
@Mapper
public interface CommentDao extends BaseMapper<Comment> {

    List<Comment> selectAuthorComment(Long authorId);

    List<Comment> selectCommentByBookId(Long bookId);

}
